	<?php $this->load->view('admin/partials/general_menu'); ?>
	<?php 
		$ci= &get_instance();	
		$currencyArray = $ci->currency_entity->getListCurrency();
	?>
	
	<div class="clrboth"></div>
	<h3><?php echo ucfirst($this->uri->segment(4,''));?></h3>
	<?php $buttons = array('buttons'=>array('Add#add_currency();') );?>
	<?php $this->load->view('admin/partials/buttons', $buttons ); ?>

	<div class="clrboth"></div>
	
	<table border="0" class="table-list">
		<thead>
			<tr>
				<th>Code</th>
				<th>Name</th>
				<th>Flag</th>
				<th>Rate( /USD )</th>
				<th><?php echo lang('dataman.manage'); ?></th>
			</tr>
		</thead>
		
		<tbody>
			<?php foreach( $currencyArray as $item ): ?>
			<?php 
				$CURRENCY = $ci->currency_entity->init('id', $item->id); 
			?>
			<tr>
				<td><?php echo $CURRENCY->getCode(); ?></td>
				<td><?php echo $CURRENCY->getName(); ?></td>
				<td><?php echo thumb($CURRENCY->getFileFlag(),30,30);?></td>
				<td><?php echo $CURRENCY->getRate(); ?></td>
				
				<td>
					<a href="javascript:void(0);" onclick="currency_edit(<?php echo $CURRENCY->getId();?>)"><?php echo lang('dataman.edit');?></a>
					<?php /* if($CURRENCY->getCode() != 'ind'): */?>	
						&nbsp;|&nbsp;
						<a href="javascript:void(0);" onclick="currency_delete(<?php echo $CURRENCY->getId();?>)" ><?php echo lang('dataman.delete');?></a>
					<?php /* endif; */?>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>


